public class test {

    public static void main(String[] args){

        System.out.println(new StringBuffer("1234312").reverse());
    }

}
